home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Connectform
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "Connect session"
- ClientHeight = 2385
- ClientLeft = 1980
- ClientTop = 2745
- ClientWidth = 3675
- ControlBox = 0 'False
- ForeColor = &H0000C0C0&
- Height = 2790
- Left = 1920
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2385
- ScaleWidth = 3675
- Top = 2400
- Width = 3795
- Begin CommandButton Command2
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 375
- Left = 2520
- TabIndex = 5
- Top = 1800
- Width = 975
- End
- Begin CommandButton Command1
- Caption = "Login"
- Default = -1 'True
- Height = 375
- Left = 120
- TabIndex = 4
- Top = 1800
- Width = 975
- End
- Begin TextBox PasswordEdit
- Height = 285
- Left = 1440
- PasswordChar = "*"
- TabIndex = 3
- Text = "PasswordEdit"
- Top = 1200
- Width = 2055
- End
- Begin TextBox UserEdit
- Height = 285
- Left = 1440
- TabIndex = 2
- Text = "UserEdit"
- Top = 720
- Width = 2055
- End
- Begin TextBox NodeEdit
- Height = 285
- Left = 1440
- TabIndex = 1
- Text = "NodeEdit"
- Top = 240
- Width = 2055
- End
- Begin Label Label3
- BackColor = &H00C0C0C0&
- Caption = "Password :"
- Height = 255
- Left = 120
- TabIndex = 7
- Top = 1200
- Width = 1095
- End
- Begin Label Label2
- BackColor = &H00C0C0C0&
- Caption = "Userid :"
- Height = 255
- Left = 120
- TabIndex = 6
- Top = 720
- Width = 1095
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "Node :"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 240
- Width = 1095
- End
- Function Check_info () As Integer
- 'check if Hostname, Userid and password have been defined
- Dim Ok%
- Ok% = True
- If Len(Trim$(ConnectForm!NodeEdit.Text)) = 0 Then
- Ok% = False
- ElseIf Len(Trim$(ConnectForm!UserEdit.Text)) = 0 Then
- Ok% = False
- ElseIf Len(Trim$(ConnectForm!PasswordEdit.Text)) = 0 Then
- Ok% = False
- End If
- If Ok% Then
- Hostname = ConnectForm!NodeEdit.Text
- Userid = ConnectForm!UserEdit.Text
- Password = ConnectForm!PasswordEdit.Text
- End If
- Check_info = Ok%
- End Function
- Sub Command1_Click ()
- If Check_info() Then
- OkDialog = True
- Unload ConnectForm
- Else
- MsgBox "Enter Nodename, Userid and Password", 64, "Warning"
- End If
- End Sub
- Sub Command2_Click ()
- OkDialog = False
- Unload ConnectForm
- End Sub
- Sub Form_Activate ()
- ConnectForm!NodeEdit.Text = Hostname
- ConnectForm!UserEdit.Text = Userid
- ConnectForm!PasswordEdit.Text = Password
- End Sub
- Sub NodeEdit_Change ()
- End Sub
- Sub UserEdit_Change ()
- End Sub
-